﻿<navigation:Page xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:local="clr-namespace:ITSSP.Controls"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           x:Class="ITSSP.Views.ChangePasswordPage"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Style="{StaticResource PageStyle}"
           Title="Change password">
    
	<Grid x:Name="LayoutRoot">
        <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}">
            <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">
                <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" Text="{Binding Path=ApplicationStrings.ChangePasswordTitle, Source={StaticResource ResourceWrapper}}"/>
                <local:CustomDataForm x:Name="changePasswordForm" 
                                      AutoEdit="True"
                                      CommandButtonsVisibility="None"
                                      HeaderVisibility="Collapsed" 
                                      AutoGeneratingField="ChangePasswordForm_OnAutoGeneratingField" 
                                      Grid.Row="0" Width="370" Style="{StaticResource LoginDataFormStyle}" />

                <Button x:Name="changePassword" Content="Change password" Click="ChangePassword_Click" HorizontalAlignment="Left" IsEnabled="False" Grid.Row="3" Grid.Column="1"/>
            </StackPanel>

        </ScrollViewer>
    </Grid>
</navigation:Page>
